package com.woniuxy.service;

import com.woniuxy.entity.Address;
import com.woniuxy.entity.Community;
import com.woniuxy.entity.Picture;

import java.time.LocalDate;
import java.util.List;

public interface CommunityService {
    List<Community> communityList();

    Integer count();

    Integer roomCount();

    Integer inhabitedCount();

    List<Community> communityRecommendList();

    List<Community> communityListByAddress(Address addressEntity);

    List<Picture> getCommunityImg(Integer comId);

    Community getCommunityById(Integer comId);

    Address getCommunityAddress(Integer comId);

    void checkIn(Integer addId, LocalDate checkInTime, LocalDate checkOutTime, Integer userId);

    void updateCommunity();
}
